import request from '@/utils/request'

// 查询能效预警列表
export function listFootprint(query) {
  return request({
    url: '/footprint/footprint/list',
    method: 'get',
    params: query
  })
}

// 查询能效预警详细
export function getFootprint(id) {
  return request({
    url: '/footprint/footprint/' + id,
    method: 'get'
  })
}

// 新增能效预警
export function addFootprint(data) {
  return request({
    url: '/footprint/footprint',
    method: 'post',
    data: data
  })
}

// 修改能效预警
export function updateFootprint(data) {
  return request({
    url: '/footprint/footprint',
    method: 'put',
    data: data
  })
}

// 删除能效预警
export function delFootprint(id) {
  return request({
    url: '/footprint/footprint/' + id,
    method: 'delete'
  })
}

// 导出能效预警
export function exportFootprint(query) {
  return request({
    url: '/footprint/footprint/export',
    method: 'get',
    params: query
  })
}